import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import nav from '@/components/nav'
import welcome from '@/components/blocks/welcome'
import DataSample from '@/components/blocks/RealTimeMonitor/DataSample'
import dataCommunication from '@/components/blocks/RealTimeMonitor/dataCommunication'
import channelManage from '@/components/blocks/RealTimeMonitor/channelManage'

import actualData from '@/components/blocks/dataAnalysis/actualData'
import totalNumber from '@/components/blocks/dataAnalysis/totalNumber'

import digitalSimulation from '@/components/blocks/digitalSimulation'
import flowSimulation from '@/components/blocks/fluidsolidCoupling/flowSimulation'
import structuralSimulation from '@/components/blocks/fluidsolidCoupling/structuralSimulation'

import historyData from '@/components/blocks/dataManage/historyData'
import rightManage from '@/components/blocks/dataManage/rightManage'

import reporterManage from '@/components/blocks/reporterManage'
import stateEvaluation from "../components/blocks/stateEvaluation";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/nav',
      component: nav,
      children: [
        {
          path: 'welcome',
          name: 'welcome',
          component: welcome
        },
        {
          path: 'DataSample',
          name: 'DataSample',
          component: DataSample
        },
        {
          path: 'dataCommunication',
          name: 'dataCommunication',
          component: dataCommunication
        },
        {
          path: 'channelManage',
          name: 'channelManage',
          component: channelManage
        },
        {
          path: 'actualData',
          name: 'actualData',
          component: actualData
        },
        {
          path: 'totalNumber',
          name: 'totalNumber',
          component: totalNumber
        },
        {
          path: 'stateEvaluation',
          name: 'stateEvaluation.vue',
          component: stateEvaluation
        },
        {
          path: 'digitalSimulation',
          name: 'digitalSimulation',
          component: digitalSimulation
        },
        {
          path: 'flowSimulation',
          name: 'flowSimulation',
          component: flowSimulation
        },
        {
          path: 'structuralSimulation',
          name: 'structuralSimulation',
          component: structuralSimulation
        },
        {
          path: 'historyData',
          name: 'historyData',
          component: historyData
        },
        {
          path: 'rightManage',
          name: 'rightManage',
          component: rightManage
        },
        {
          path: 'reporterManage',
          name: 'reporterManage',
          component: reporterManage
        }]
    }
  ],
  meta: {
    requireAuth: true
  },
  linkActiveClass: 'active'
})
